package com.xf.spring.beanscollection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

    public static void main(String[] args) {

        ApplicationContext ct = new ClassPathXmlApplicationContext("applicationContext.xml");
        Person p = (Person) ct.getBean("persons");
        System.out.println(p);

    }

}
